<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="cookie.js"></script>
</head>
<body>
<script>
    //删除
    console.log(docCookies.setItem('num','',new Date('1997-1-1')));//设置过期就表示删除

</script>
</body>
</html>